package com.rs.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;
import com.rs.model.CommonResult;
import com.rs.model.ZhClasses;
import com.rs.model.ZhUser;

public interface ZhClassesService {
	
	//列表展示某班所有学生
    public Page<ZhUser> selecClassStudents(Map<String,Integer> map);
    
    //删除一个班级
    CommonResult<Integer> deleteByPrimaryKey(Integer clId);
    
    //添加一个班级
    CommonResult<Integer> insertSelective(ZhClasses record);
    
    //展示一个班级信息
    ZhClasses selectByPrimaryKey(Integer clId);
    
    //修改一条班级信息
    CommonResult<Integer> updateByPrimaryKeySelective(ZhClasses record);
    
    //展示所有毕业班级 
    Page<ZhClasses> graduationZhClassess(Integer pageNum);
    
    //展示所有未毕业班级 
    Page<ZhClasses> notGraduateZhClassess(Integer pageNum);
    
    //结业申请
    CommonResult<Integer> updateGraduationToApplyFor(Integer clId);
    
    //结业审核
    CommonResult<Integer> updateGraduationAudit(ZhClasses record);
    
    //得到所有毕业班级
    List<ZhClasses> listZhClasses();
    
    /**
     * 展示所有 填写了结业时间的班级
     * @return
     */
    Page<ZhClasses> graduationZhClassessByEnd(ZhClasses record);
    
}
